<?php
include 'db_settings.php';

mysql_connect($mysql_host, $mysql_user, $mysql_password);
mysql_select_db($mysql_database);

$q = mysql_query("SELECT * FROM Login WHERE user='".$_REQUEST[user]."' AND password='".$_REQUEST[pass]."'");

while ($e = mysql_fetch_assoc($q))
	$output[] = $e;

print(json_encode($output));

mysql_close();
?>